AC_INIT(stag, 0.1.a)
AC_PROG_CC

AC_LANG(C)

AC_CHECK_HEADERS([stdio.h sqlite3.h])
if test "$ac_cv_header_sqlite3_h" == no
then
	AC_MSG_ERROR([sqlite3.h missing! Make sure the development files for sqlite3 are installed.])
fi

AC_CHECK_LIB(sqlite3, sqlite3_open_v2)
if test "$ac_cv_lib_sqlite3_sqlite3_open_v2" == no
then
	AC_MSG_ERROR([Failed when linking to sqlite3! Make sure the development files for sqlite3 are installed.])
fi



AC_SUBST(name, $PACKAGE_NAME)
AC_SUBST(version, $PACKAGE_VERSION)
AC_SUBST(noedit, ["Warning: File content is overwritten by configure"])
AC_SUBST(system, ["LINUX"])
AC_OUTPUT(Makefile)
AC_OUTPUT(stag.h)
